﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 基本语法
{
    class Program
    {
        static void Main(string[] args)
        {

        }

    }
    class Selcet
    {
        private void Test()
        {
            bool a = true;
    
            //条件语句 if else if else
            if (a)
            {
                Console.WriteLine("if");
            }
            else if (a)
            {
                Console.WriteLine("else if");
            }
            else
            {
                Console.WriteLine("else");
            }

            //switch 语句
            switch (a)
            {
                case true:
                    break;
                case false:
                    break;
                default:
                    break;
            }
        }
    }
}
